//
//  EmploymentListTCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/26.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "EmploymentListTCell.h"

@interface EmploymentListTCell ()
@property (weak, nonatomic) IBOutlet UILabel *topLabel;
@property (weak, nonatomic) IBOutlet UIView *bottomLineView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lineViewH;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;

@end

@implementation EmploymentListTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.topLabel.font = MYFONT(14);
    
    self.bottomLineView.backgroundColor = viewBgGrey;
    
    self.topLabel.textColor = darkGray;
    
    self.bottomMargin.constant = 0;
    
    
    // Initialization code
}


- (void)setModel:(EmploymentListModel *)model{
    _model = model;
    
    self.topLabel.text = _model.supplier_name;
    
    if (self.isLastCell) {
        
        self.bottomLineView.hidden = YES;
        self.lineViewH.constant = 0;
        
    } else {
        
        self.bottomLineView.hidden = NO;
        self.lineViewH.constant = 8;
    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
